package indi.zhifa.learn.jenkins.helloworld2.web.controller.init;

import cn.hutool.extra.spring.SpringUtil;
import indi.zhifa.learn.jenkins.helloworld2.web.service.IUserService;
import lombok.AllArgsConstructor;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
@AllArgsConstructor
public class AppInit implements CommandLineRunner {

    private final IUserService mUserService;

    @Override
    public void run(String... args) throws Exception {
        mUserService.checkInit();
    }
}
